package com.example.bootmanager.widget;

import java.util.ArrayList;

import android.content.ComponentName;

import com.example.bootmanager.apk.ApkInfo;

public class Item {
	public ApkInfo apkInfo;
	public ArrayList<ComponentName> componentNames;
	public boolean enable;

	public Item(ApkInfo paramApkInfo) {
		this.apkInfo = paramApkInfo;
		this.enable = false;
		this.componentNames = new ArrayList();
	}

	public void addComponent(boolean paramBoolean,
			ComponentName paramComponentName) {
		this.componentNames.add(paramComponentName);
/*		
		if ((!this.enable) && (!paramBoolean))
			;
		for (boolean bool = false;; bool = true) {
			this.enable = bool;
			return;
		}
*/
		if(!enable)
			enable = paramBoolean;
	}

	public boolean equals(Object paramObject) {
		if (paramObject == null)
			return false;
		// do
		// return false;
		// while (!(paramObject instanceof Item));
		return this.apkInfo.equals(((Item) paramObject).apkInfo);
	}
}
